package com.miao.view
{
	import com.miao.view.interfaces.IPlayer;
	
	import org.puremvc.as3.multicore.patterns.mediator.Mediator;
	
	public class FlvPlayerMediator extends Mediator implements IPlayer
	{
		
		public static const NAME:String = "FlvPlayerMediator";
		
		private var _currentUrl:String;
		
		public function FlvPlayerMediator(viewComponent:Object=null)
		{
			super(NAME, viewComponent);
		}
		
		public function get isShown():Boolean{
			return player.visible;
		}
		
		public function hide():void{
			player.visible=false;
			player.includeInLayout=false;
		}
		
		public function show():void{
			player.visible=true;
			player.includeInLayout=true;
		}
		
		public function load(url:String):void{
			
		}
		
		public function set showLoading(val:Boolean):void{
			
		}
		
		public function setProgress(loaded:Number, total:Number):void{

		}
		
		public function unload():void{
			
		}
		
		public function play():void{
			
		}
		
		public function stop():void{
			
		}
		
		public function pause():void{
			
		}
		
		public function gotoAndPlay(pos:Number):void{
			
		}
		
		public function set currentUrl(url:String):void{
			_currentUrl = url;
		}
		
		public function get currentUrl():String{
			return _currentUrl;
		}
		
		private function get player():FlvPlayer{
			return viewComponent as FlvPlayer;
		}
	}
}